package com.itheima.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.itheima.entity.UserInfo;

@Mapper
public interface UserInfoMapper {

    /**
     * 根据主键查询
     */
    UserInfo selectByPrimaryKey(Integer userId);

    UserInfo selectByPhoneAndPassword(@Param("phone") String phone, @Param("password") String password);
    /**
     * 新增用户--注册
     */
    int insertSelective(UserInfo userInfo);

    int batchInsert(List<UserInfo> list);
}